<?php
/**
 *Author:淡心心心
 *Date:2021/4/19
 *Time:19:26
 */
include_once "./Benz.php";
include_once "./BMW.php";
include_once "CarX.php";
include_once "SBenz.php";

$car = new Benz();
$car->name= "宝马";
$car->driver();
$car2 = new BMW("宝马");

$testcar = new SBenz();
$testcar->driver($car2);

